package com.daiqee.pojo;

import java.util.Date;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.FieldStrategy;
import com.baomidou.mybatisplus.enums.IdType;
import com.daiqee.annotations.DateField;
import com.fasterxml.jackson.annotation.JsonFormat;

/**
 * 销售订单情况
 * 
 * <br/>
 * @since JDK 1.8
 * @version  V2.3
 * @author RichardTang 
 * @date: 2018年6月8日
 * @package com.daiqee.pojo
 * @copyright:Copyright (c) 2018, 1245811923@qq.com All Rights Reserved.
 */

@TableName("sale_order")
public class SaleOrder {
	
	@TableId(type = IdType.AUTO)
    private Integer id;

	@DateField
	@TableField(strategy = FieldStrategy.NOT_EMPTY)
	@JsonFormat(pattern="yyyy-MM-dd",timezone="GMT+8")
    private Date datetime;

	@TableField(strategy = FieldStrategy.NOT_EMPTY)
    private String specifications;

	@TableField(strategy = FieldStrategy.NOT_EMPTY)
    private String unit;

    private Integer inNumber;

    private Integer outedNumber;

    private Integer atFinishedNumber;

    private Integer atLackNumber;

    private String remark;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Date getDatetime() {
        return datetime;
    }

    public void setDatetime(Date datetime) {
        this.datetime = datetime;
    }

    public String getSpecifications() {
        return specifications;
    }

    public void setSpecifications(String specifications) {
        this.specifications = specifications == null ? null : specifications.trim();
    }

    public String getUnit() {
        return unit;
    }

    public void setUnit(String unit) {
        this.unit = unit == null ? null : unit.trim();
    }

    public Integer getInNumber() {
        return inNumber;
    }

    public void setInNumber(Integer inNumber) {
        this.inNumber = inNumber;
    }

    public Integer getOutedNumber() {
        return outedNumber;
    }

    public void setOutedNumber(Integer outedNumber) {
        this.outedNumber = outedNumber;
    }

    public Integer getAtFinishedNumber() {
        return atFinishedNumber;
    }

    public void setAtFinishedNumber(Integer atFinishedNumber) {
        this.atFinishedNumber = atFinishedNumber;
    }

    public Integer getAtLackNumber() {
        return atLackNumber;
    }

    public void setAtLackNumber(Integer atLackNumber) {
        this.atLackNumber = atLackNumber;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark == null ? null : remark.trim();
    }
}